﻿@model CloudFranceTriple.Models.VeteranWall

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.VeteranWallEditTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.VeteranWallEditTitle</h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>VeteranWall</legend>

                @Html.HiddenFor(model => model.Id)

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranPseudo
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Pseudo)
                    @Html.ValidationMessageFor(model => model.Pseudo)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranStatus
                </div>
                <div class="editor-field">
                    @Html.DropDownList("VeteranStatus_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.VeteranStatus_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranPeriodStart
                </div>
                <div class="editor-field">
                    @Html.DropDownList("VeteranWallPeriodBegin_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.VeteranWallPeriodBegin_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranPeriodEnd
                </div>
                <div class="editor-field">
                    @Html.DropDownList("VeteranWallPeriodEnd_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.VeteranWallPeriodEnd_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranEmail
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranComment
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Comment)
                    @Html.ValidationMessageFor(model => model.Comment)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranAuthor
                </div>
                <div class="editor-field">
                    @User.Identity.Name
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonSave" />
                </p>
            </fieldset>
        }

        <div>
            @Html.ActionLink("Back to List", "Index")
        </div>

        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
